only keep the row at the same position if the full row is visible.
authorKristian Rietveld <kris@gtk.org>
Sun, 19 Jun 2005 18:40:35 +0000 (18:40 +0000)
committerKristian Rietveld <kristian@src.gnome.org>
Sun, 19 Jun 2005 18:40:35 +0000 (18:40 +0000)
2005-06-19  Kristian Rietveld  <kris@gtk.org>

* gtk/gtktreeview.c (validate_visible_area): only keep the
row at the same position if the full row is visible. (#304623,
Jorn Baayen).

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-8
gtk/gtktreeview.c

index 2e07d7ed97ff17f4a7bd437080e9cc047428210d..7da0dce54ef01054588ac5458e75b5eac910a831 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-06-19  Kristian Rietveld  <kris@gtk.org>
+
+       * gtk/gtktreeview.c (validate_visible_area): only keep the
+       row at the same position if the full row is visible. (#304623,
+       Jorn Baayen).
+
 2005-06-19  Kristian Rietveld  <kris@gtk.org>
 
        * gtk/gtktreeview.c (gtk_tree_view_size_allocate): set dy to zero
index 2e07d7ed97ff17f4a7bd437080e9cc047428210d..7da0dce54ef01054588ac5458e75b5eac910a831 100644 (file)
@@ -1,3 +1,9 @@
+2005-06-19  Kristian Rietveld  <kris@gtk.org>
+
+       * gtk/gtktreeview.c (validate_visible_area): only keep the
+       row at the same position if the full row is visible. (#304623,
+       Jorn Baayen).
+
 2005-06-19  Kristian Rietveld  <kris@gtk.org>
 
        * gtk/gtktreeview.c (gtk_tree_view_size_allocate): set dy to zero
index 2e07d7ed97ff17f4a7bd437080e9cc047428210d..7da0dce54ef01054588ac5458e75b5eac910a831 100644 (file)
@@ -1,3 +1,9 @@
+2005-06-19  Kristian Rietveld  <kris@gtk.org>
+
+       * gtk/gtktreeview.c (validate_visible_area): only keep the
+       row at the same position if the full row is visible. (#304623,
+       Jorn Baayen).
+
 2005-06-19  Kristian Rietveld  <kris@gtk.org>
 
        * gtk/gtktreeview.c (gtk_tree_view_size_allocate): set dy to zero
index 18ba1d47edaf5fff4eb5df26edbcc993de584d0c..28e12189132adc1f301324adb031c377b5687de0 100644 (file)
@@ -4703,8 +4703,8 @@ validate_visible_area (GtkTreeView *tree_view)
              dy = _gtk_rbtree_node_find_offset (tree, node);
 
              if (dy >= tree_view->priv->vadjustment->value &&
-                 dy < (tree_view->priv->vadjustment->value
-                       + tree_view->priv->vadjustment->page_size))
+                 dy + height <= (tree_view->priv->vadjustment->value
+                                 + tree_view->priv->vadjustment->page_size))
                {
                  /* row visible: keep the row at the same position */
                  area_above = dy - tree_view->priv->vadjustment->value;